package com.diandian.backend.product.clients.dto.elemeRetail;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class ElemeRetailBusinessGetSkuStockRespDTO implements Serializable {

    private String onlineStoreCode; // 线上门店编码
    private String offlineStoreCode; // 线下门店编码
    private String productCode; // 商品编码
    private String skuCode;
    private Long curQty; // 可用库存：现在可以用于出售的库存数，可用库存 = 现货库存 - 预占库存 - 锁定库存
    private Long tranQty; // 在途库存
    private Long inQty; // 现货库存：现在商品的库存数
    private Long preQty; // 预占库存：当前业务因素导致需要暂时占用的库存数，暂时不能用于出售
    private Long lockQty; // 锁定库存
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastModificationTime; // 最新修改时间
    private String message;

    public String getOnlineStoreCode() {
        return onlineStoreCode;
    }

    public void setOnlineStoreCode(String onlineStoreCode) {
        this.onlineStoreCode = onlineStoreCode;
    }

    public String getOfflineStoreCode() {
        return offlineStoreCode;
    }

    public void setOfflineStoreCode(String offlineStoreCode) {
        this.offlineStoreCode = offlineStoreCode;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public Long getCurQty() {
        return curQty;
    }

    public void setCurQty(Long curQty) {
        this.curQty = curQty;
    }

    public Long getTranQty() {
        return tranQty;
    }

    public void setTranQty(Long tranQty) {
        this.tranQty = tranQty;
    }

    public Long getInQty() {
        return inQty;
    }

    public void setInQty(Long inQty) {
        this.inQty = inQty;
    }

    public Long getPreQty() {
        return preQty;
    }

    public void setPreQty(Long preQty) {
        this.preQty = preQty;
    }

    public Date getLastModificationTime() {
        return lastModificationTime;
    }

    public void setLastModificationTime(Date lastModificationTime) {
        this.lastModificationTime = lastModificationTime;
    }

    public Long getLockQty() {
        return lockQty;
    }

    public void setLockQty(Long lockQty) {
        this.lockQty = lockQty;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
